From the Firehose

Tmux install

Installation

pacman -S tmux

Sane scrolling

The default scrolling behaviour runs through the previous commands instead of scrolling the terminal output. Enable sane scrolling behaviour with this config line.

~/.config/tmux/tmux.conf
set -g mouse on

Usage

Commands

Here is a summary of the most common commands that you'll want to use.

CommandFunction
tmuxStart a new session
tmux new -s nameStart a new named session
tmux lsList sessions
tmux attachAttach to the most recently used session
tmux attach -t nameAttach to a named session
tmux kill-session -t nameKill a named session

Key bindings

Tmux also have a lot of keybindings to help you manage all sessions and windows. Here are the essential bindings that you'll want to learn. The default key combination to initiate a command is Ctrl+b / control+b.

CommandFunction
Ctrl+b ?List all key bindings.
Ctrl-b dDetach from the current session
Ctrl+b %Add a new pane to the right
Ctrl+b "Add a new pane to the bottom
Ctrl+b %Split pane horizontally
Ctrl+b "Split pane vertically
Ctrl+b oSwitch to the next pane
Ctrl+b ;Move between the current and previous pane
Ctrl+b arrow-keyNavigate between the panes
Ctrl+b xCtrl+b x Close the current pane
Ctrl-b cCreate a new window
Ctrl-b wSwitch between sessions and windows


Category: Linux | Comments: 0

Comments: 0

About

Customize this section to tell your visitors a little bit about your publication, writers, content, or something else entirely. Totally up to you.